import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from './store'
import VueSocketIO from 'vue-socket.io'

Vue.config.productionTip = false

Vue.use(ElementUI);

// 使用 vue-socket.io 插件
Vue.use(new VueSocketIO({
  debug: true,
  connection: 'http://127.0.0.1:5000',  // 你的Flask服务器地址
}));

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
}).$mount('#app')
